cmake_minimum_required(VERSION 3.18.1)
# Declares and names the project.
project("enciphereddata")
# 去除中间文件，减少so大小
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -s")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -s")


add_library(
        lyLogSave
        SHARED
        LogWriter.cpp
        ErrorInfo.cpp
        LyTool.cpp
        LyLogSave.cpp)

find_library(
        log-lib
        log)


target_link_libraries(
        lyLogSave
        ${log-lib})